package com.cmcc.cmii.smsmail.rest;

import com.cmcc.cmii.smsmail.model.BaseMail;
import com.cmcc.cmii.smsmail.model.v1.SimpleMail;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Thanks
 */
@RestController
@RequestMapping("/test")
public class TestExceptionController {

    @RequestMapping("/testException")
    public String testException(@Validated @RequestBody SimpleMail simpleMail){
        int i = 1/0;
        return "success";
    }
}
